/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package UDPFiles;

/**
 *
 * @author wcss
 */
public class BufferObject 
{
    
    public BufferObject(long id,byte[] dat)
    {
        this.setIndex(id);
        this.setData(dat);
    }
    
    private long index;
    private byte[] data;

    /**
     * @return the index
     */
    public long getIndex() {
        return index;
    }

    /**
     * @param index the index to set
     */
    public void setIndex(long index) {
        this.index = index;
    }

    /**
     * @return the data
     */
    public byte[] getData() {
        return data;
    }

    /**
     * @param data the data to set
     */
    public void setData(byte[] data) {
        this.data = data;
    }
    
    
}
